package com.cnhis.cloudhealth.clinical.clidoctor.treatment.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
import java.util.HashMap;
import com.cnhis.cloudhealth.commons.utils.Page;

@SuppressWarnings("rawtypes")
@Repository
public class TreatmentDao extends BaseDao
{
    public Page queryPatientTreatmentRecord(Map map, int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("Treatment.queryPatientTreatmentRecord", map, currPage, pageSize);
    }
    
    public Page queryHospitalPatientTreatmentRecord(Map map, int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("Treatment.queryHospitalPatientTreatmentRecord", map, currPage, pageSize);
    }
    
    public Long getVac1Value(Map map)
        throws Exception
    {
        return (Long)this.queryForExtObject("Treatment.getVac1Value", map);
    }
    
    public Long getVae1Value(Map map)
        throws Exception
    {
        return (Long)this.queryForExtObject("Treatment.getVae1Value", map);
    }
    
    public List getTreatmentItemById(Map map)
        throws Exception
    {
        return this.queryForList("Treatment.getTreatmentItemById", map);
    }
    
    public void insertDoctorDiagnose(Map map)
        throws Exception
    {
        this.insert("Treatment.insertDoctorDiagnose", map);
    }
    
    public Integer BDJ1Count(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("Treatment.BDJ1Count", map);
    }
    
    public void updateBDJ1Param1(Map map)
        throws Exception
    {
        update("Treatment.updateBDJ1Param1", map);
    }
    
    public void updateBDJ1Param2(Map map)
        throws Exception
    {
        update("Treatment.updateBDJ1Param2", map);
    }
    
    public void insertBDJ1Param1(Map map)
        throws Exception
    {
        insert("Treatment.insertBDJ1Param1", map);
    }
    
    public void insertBDJ1Param2(Map map)
        throws Exception
    {
        insert("Treatment.insertBDJ1Param2", map);
    }
    
    public void deleteBDJ1(Map map)
        throws Exception
    {
        delete("Treatment.deleteBDJ1", map);
    }
    
    public List personTreamentList(Map map)
        throws Exception
    {
        return queryForList("Treatment.personTreamentList", map);
    }
    
    public List jibingList(HashMap hs) throws Exception
    {
        return queryForList("Treatment.jibingList", hs);
    }

    public List jibingInfo(HashMap hs) throws Exception
    {
        return queryForList("Treatment.jibingInfo", hs);
    }

    public List otherPinci(HashMap hs) throws Exception
    {
        return queryForList("Treatment.otherPinci", hs);
    }

    public List geiyaokeshiList(HashMap hs) throws Exception
    {
        return queryForList("Treatment.geiyaokeshiList", hs);
    }

    public List loadBce1(HashMap hs) throws Exception
    {
        return queryForList("Treatment.loadBce1", hs);
    }

    public List handleAdmission(HashMap hs) throws Exception
    {
        return queryForList("Treatment.handleAdmission", hs);
    }

    public void addVao1(HashMap hs) throws Exception
    {
        update("Treatment.addVao1", hs);
    }

	public List getZhenduanShouye(HashMap hs) throws Exception {
		return queryForList("Treatment.getZhenduanShouye", hs);
	}

	public void saveZhenduanShouye(HashMap hs) throws Exception {
		update("Treatment.saveZhenduanShouye", hs);
	}

    public List queryVbn1ByVaa07(HashMap hs) throws Exception
    {
        return queryForList("Treatment.queryVbn1ByVaa07", hs);
    }

    public List getZhenduanShouye1(HashMap hs) throws Exception
    {
        return queryForList("Treatment.getZhenduanShouye1", hs);
    }

    public void saveZhenduanShouye1(HashMap hs) throws Exception
    {
        update("Treatment.saveZhenduanShouye1", hs);
    }

    public void deleteVao1ByVao01(HashMap hs) throws Exception
    {
        delete("Treatment.deleteVao1ByVao01", hs);
    }

    public List getCailiaoInfoBybbx01(HashMap hs) throws Exception
    {
        return queryForList("Treatment.getCailiaoInfoBybbx01", hs);
    }

    public List yibaoJibingList(Map hs) throws Exception
    {
        return queryForList("Treatment.yibaoJibingList", hs);
    }
}
